/* 主路由模块 */
const routes = require('koa-router')();
const path = require('path');
const ff = require('../module/fstools/fstools')

routes.get('/',async (ctx,next)=>{
    console.log(ctx.url)
    ctx.body={
        message: 'index.js'
    }
})

routes.get('/shops',async (ctx,next)=>{
        const res = await ff.read('public/api/shop.json')
        ctx.body=res          
    
})


module.exports=routes.routes()
